From 6f2f51efc09dfce76b1aaae47c2b3618f1d62c12 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 29 Apr 2005 19:20:49 +0000 Subject: [PATCH] Don't grab focus to unrealized widgets. (#302240, Philip Langdale) 2005-04-29 Matthias Clasen * gtk/gtkradiobutton.c (gtk_radio_button_focus): Don't grab focus to unrealized widgets. (#302240, Philip Langdale) --- ChangeLog | 3 +++ ChangeLog.pre-2-10 | 3 +++ ChangeLog.pre-2-8 | 3 +++ gtk/gtkradiobutton.c | 4 ++-- 4 files changed, 11 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 03231717ea..1b026ec63b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2005-04-29 Matthias Clasen + * gtk/gtkradiobutton.c (gtk_radio_button_focus): Don't + grab focus to unrealized widgets. (#302240, Philip Langdale) + * gtk/gtktreeview.c (gtk_tree_view_state_changed): Set background upon state changes. (#301651, Billy Biggs) (gtk_tree_view_get_path_at_pos): Take RTL into account diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 03231717ea..1b026ec63b 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,5 +1,8 @@ 2005-04-29 Matthias Clasen + * gtk/gtkradiobutton.c (gtk_radio_button_focus): Don't + grab focus to unrealized widgets. (#302240, Philip Langdale) + * gtk/gtktreeview.c (gtk_tree_view_state_changed): Set background upon state changes. (#301651, Billy Biggs) (gtk_tree_view_get_path_at_pos): Take RTL into account diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 03231717ea..1b026ec63b 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,5 +1,8 @@ 2005-04-29 Matthias Clasen + * gtk/gtkradiobutton.c (gtk_radio_button_focus): Don't + grab focus to unrealized widgets. (#302240, Philip Langdale) + * gtk/gtktreeview.c (gtk_tree_view_state_changed): Set background upon state changes. (#301651, Billy Biggs) (gtk_tree_view_get_path_at_pos): Take RTL into account diff --git a/gtk/gtkradiobutton.c b/gtk/gtkradiobutton.c index 3d2d54c517..1c42cf127f 100644 --- a/gtk/gtkradiobutton.c +++ b/gtk/gtkradiobutton.c @@ -515,7 +515,7 @@ gtk_radio_button_focus (GtkWidget *widget, { GtkWidget *child = tmp_list->data; - if (GTK_WIDGET_VISIBLE (child) && GTK_WIDGET_IS_SENSITIVE (child)) + if (GTK_WIDGET_REALIZED (child) && GTK_WIDGET_IS_SENSITIVE (child)) { new_focus = child; break; @@ -533,7 +533,7 @@ gtk_radio_button_focus (GtkWidget *widget, { GtkWidget *child = tmp_list->data; - if (GTK_WIDGET_VISIBLE (child) && GTK_WIDGET_IS_SENSITIVE (child)) + if (GTK_WIDGET_REALIZED (child) && GTK_WIDGET_IS_SENSITIVE (child)) { new_focus = child; break; -- 2.30.2